package Java复习;

public class gd1 {
    public static void main(String[] args) {
        int[] a1 = {11,9,3,5,7,13,12,17,2};
        int max=a1[0];
        for (int i : a1) {
            if (i>max)
                max = i;
        }
        for (int i = 0; i < a1.length; i++) {
            if (a1[i]==max)
                System.out.println(i);
        }
    }
}
